import urllib.request
import urllib.parse

# post请求测试
data = bytes(urllib.parse.urlencode({'word': 'hello'}), encoding='utf8')
response1 = urllib.request.urlopen('https://httpbin.org/post', data=data)
print(response1.read())